", $paget);
$paget = ereg_replace('', $img, $paget);
}
$txt = "Email ".$data[nick]." ♦ Message ".$data[nick]."";
if($data[url])
$txt .= " ♦ Visit Homepage";
$myid = $_SESSION['USER_ID'];
if($id != $myid)
{
$pal = -1;
$cnt = 0;
$sql = "select * from tsms_rel where myid='$myid' and uid='$id'";
$resu=mysql_query($sql);
if($resu)
$cnt = @mysql_num_rows($resu);
if($cnt)
{
$datau = @MYSQL_FETCH_ARRAY($resu);
if($datau[who] == '1')
$pal = 1;
else
$pal = 0;
}
if($pal == -1) // Not defined
{
$u1 = "Add to Pals";
$u2 = "IGNORE messages";
$pal = "";
}
elseif($pal == 0) // Ignored
{
$u1 = "Undo IGNORE";
$u2 = "Undo IGNORE and add to Pals";
$pal = "IGNORED";
}
else // Pal
{
$u1 = "Remove from Pals";
$u2 = "Remove from Pals and IGNORE";
$pal = "MY PAL";
}
$txt .= "
".$u1." ♦ ".$u2;
$txt .= "
Report Inappropriate Profile";
$paget = ereg_replace('', $pal, $paget);
}
$paget = ereg_replace('', $txt, $paget);
echo $paget;
?>